package com.jinghua.treatment.tools;

import java.util.Random;

/**
 * 字符操作辅助类
 */
public class StringUtil {
    static Random random = new Random();
    public static String randomStringNumber(int len){
        String result  = "";
        if(len>0){
            for(int i = 0;i <len; i++){
                result +=random.nextInt(10);
            }
        }
        return result;
    }

    public static void main(String args[]){
        System.out.println(randomStringNumber(6));
    }
}
